package jxta.chat.events;

// TODO Change the class

public class JxtaChatEvent extends java.util.EventObject
{
    public static final int GROUPJOINFAILED = 0;
    public static final int GROUPCREATED = 1;
    
    private String message = "";
    private String peerName = "";
    private String GroupName = null;
    private Object source2 = null;

    public JxtaChatEvent(Object source){
    	super(source);
    }
    
    public JxtaChatEvent(Object source, Object source2){
    	this(source);
    	
    	this.source2 = source2;
    }
    
    
    public JxtaChatEvent(Object source, String message, String GroupName)
    {
		super(source);
		this.message = message;
		this.GroupName = GroupName;
    }
    
    public JxtaChatEvent(Object source, String message)
    {
		super(source);
		this.message = message;
    }
    
    public JxtaChatEvent(Object source, String message, String GroupName, String peerName)
    {
		this(source, message, GroupName);
				
		this.peerName = peerName;
    }

    public String getMessage()
    {
    	return message;
    }

    public String getGroupName()
    {
    	return GroupName;
    }

	public String getPeerName() {
		return peerName;
	}

	public void setPeerName(String peerName) {
		this.peerName = peerName;
	}

	public Object getSource2() {
		return source2;
	}
}